home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 2438 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  733 b 

  1. Path: news.ust.hk!anthony
  2. From: anthony@cs.ust.hk (Pang Hung Hing Anthony)
  3. Newsgroups: comp.lang.c++
  4. Subject: Question about template
  5. Date: 16 Jan 1996 06:08:42 GMT
  6. Organization: The Hong Kong University of Science and Technology
  7. Message-ID: <4dffda$ia0@news.ust.hk>
  8. NNTP-Posting-Host: cssu8.cs.ust.hk
  9. X-Newsreader: TIN [version 1.2 PL2]
  10.  
  11. Hello!
  12.     Template function (no matter member or not) is usually placed in header file,
  13. so that multiple files can share the same template. However, if it is not inlined,
  14. multiple instance of template function of the same type will cause multiple defined
  15. symbol error during linkage. So, my question is: Can a template function not be inlined?
  16. Please reply through email.
  17.  
  18. Many thanks.
  19.  
  20. Anthony
  21.  
  22.